package com.nai365.nart.seckill.feign;

import com.nai365.nart.common.core.constant.SecurityConstants;
import com.nai365.nart.common.core.constant.ServiceNameConstants;
import com.nai365.nart.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 商品服务
 * @Description:
 * @Created: with IntelliJ IDEA.
 * @author: baogs
 * @createTime: 2022-07-04 21:52
 **/

@FeignClient(ServiceNameConstants.PRODUCT_SERVICE)
public interface ProductFeignService {


    @RequestMapping("/skuinfo/info/{skuId}")
	R getSkuInfo(@PathVariable("skuId") Long skuId,@RequestHeader(SecurityConstants.FROM) String from);

    /**
     * 查询商品详情
     */
    @PostMapping("/skuinfo/infos")
    R getSkuInfos(@RequestBody List<Long> skuIds,@RequestHeader(SecurityConstants.FROM) String from);


	@GetMapping(value = "/spuinfo/Lates3DaySession")
	R getLates3DaySession();
	@GetMapping(value = "/spuinfo/get_seckill_session")
	R getSeckillSession(@RequestParam("spuId") String spuId,@RequestHeader(SecurityConstants.FROM) String from);


}
